﻿namespace Way.Bus.WMS.ST.Model
{
    using Way.Bus.Model;
    using Way.EAP.DataAccess.Entity;

    public class ST_Customer : BusinessCustomer
    {
        private HierarchicalEntityView<ST_Customer, ST_CustomerAdress> _customerAdressItems;
        private HierarchicalEntityView<ST_Customer, ST_Materials> _customerMaterialItems;

        public HierarchicalEntityView<ST_Customer, ST_CustomerAdress> CustomerAdressItems
        {
            get
            {
                if (this._customerAdressItems == null)
                {
                    this._customerAdressItems = new HierarchicalEntityView<ST_Customer, ST_CustomerAdress>(this);
                }
                return this._customerAdressItems;
            }
        }

        public HierarchicalEntityView<ST_Customer, ST_Materials> CustomerMaterialItems
        {
            get
            {
                if (this._customerMaterialItems == null)
                {
                    this._customerMaterialItems = new HierarchicalEntityView<ST_Customer, ST_Materials>(this);
                }
                return this._customerMaterialItems;
            }
        }
    }
}

